package org.datascooter.impl;

import java.util.ArrayList;
import java.util.List;

import org.datascooter.inface.IConnectorProvider;
import org.datascooter.inface.IContextConnector;

public class DummyConnectorProvider implements IConnectorProvider {

	private final IContextConnector connector;

	public DummyConnectorProvider(IContextConnector connector) {
		this.connector = connector;
	}

	@Override
	public IContextConnector getItem(String dname) {
		return connector;
	}

	@Override
	public void explore() throws Exception {
	}

	@Override
	public List<String> getAvailableContexts() {
		ArrayList<String> arrayList = new ArrayList<String>();
		arrayList.add(connector.getContextId());
		return arrayList;
	}
}
